package com.yidu.qianfeng.controller;

import com.yidu.qianfeng.common.bean.client.Consignee;
import com.yidu.qianfeng.common.bean.client.Shipper;
import com.yidu.qianfeng.service.CustService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: TangSheng
 * @Description: 顾客视图层
 * @Date Created in 9:14 2021/3/18
 * @since 1.0
 */
@Controller("custController")
public class CustController {

    @Resource(name = "custServiceImpl")
    private CustService custService;

    @RequestMapping("/getShipperList")
    public @ResponseBody List<Shipper> getShipperList(){
        return custService.queryShipperList();
    }

    @RequestMapping("/getConsigneeList")
    public @ResponseBody List<Consignee> getConsigneeList(){
        return custService.queryConsigneeList();
    }

}
